﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using Common;

namespace UI.system.page.storage
{
    public partial class rukuadd : System.Web.UI.Page
    {
        //public ProductInfo info = new ProductInfo();
        public string[] imgs;
        public string Imgs = string.Empty;
        public string ucode = JobRequest.GetRequestString("id");
        public string name = JobRequest.GetRequestString("name");
        public string aname;
        public RawdataInfo info = new RawdataInfo();
        public List<PositionInfo> positionlist = new List<PositionInfo>();

        protected void Page_Load(object sender, EventArgs e)
        {
            positionlist = PositionDAL.FindAll();
            Imgs = "0";
           
            if (ucode != "" || ucode!=null)
            {
                info = RawdataDAL.FindByUCode(ucode);
                //info = ProductDAL.FindOneByID(id);
                //if (info.Imgs != "" && info.Imgs != null)
                //{
                //    imgs = info.Imgs.Split(',');
                //    Imgs = SerializeHelper.ToJsonByDynamic(imgs);
                //}

            }
            if (B.MyAdmin != null)
            {
                aname = B.MyAdmin.RealName;                
            }
        }
    }
}